import { App } from 'vue'
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import { createRouterGuards } from '@/utils'
export const routes: Array<RouteRecordRaw> = []
const router = createRouter({
  history: createWebHashHistory(),
  routes
})
window.$router = router;
export function setupBaseRouter (app: App) {
  app.use(router);
  // 创建路由守卫
  createRouterGuards(router)
}
export default router
